package com.ganqiang1983.wol4j.util;

import java.util.regex.Pattern;

public class Constants
{
  /**受限广播地址**/
  public static String LIMIT_BROADCAST_ADDRESS = "255.255.255.255";

  /**默认端口号，要求防火墙没有限制**/
  public static int PORT = 9;
  
  /** 验证是否为MAC地址 **/
  public static boolean validMAC(String mac){
	String patternMac="^[a-fA-F0-9]{2}+:[a-fA-F0-9]{2}+:[a-fA-F0-9]{2}+:" +
			"[a-fA-F0-9]{2}+:[a-fA-F0-9]{2}+:[a-fA-F0-9]{2}$";
    Pattern pa= Pattern.compile(patternMac);
    return pa.matcher(mac).find();
  }
}
